package org.eclipse.emf.extensions;

import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EDataType;


public class DBNativeFieldDescriptor implements IDBFieldDescriptor {
    private final String name;
    private final EClassifier type;

    protected DBNativeFieldDescriptor(String name, EClassifier type) {
        this.name=name;
        this.type=type;
    }

    public DBNativeFieldDescriptor(String name, EDataType type) {
        this(name, (EClassifier) type);
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public EClassifier getType() {
        return type;
    }

    boolean isAttribute() {
        return true;
    }

    boolean hasInheritance() {
        return false;
    }

    String getColumnTypeAnnotation() {
        return null;
    }

    String getColumnLengthAnnotation() {
        return null;
    }
}
